<?php

namespace Common\Model;

class OrderRecordModel extends BaseModel {

    protected $trueTableName = 'tb_order_record';

    /**
     * 获取信息
     * @param integer $id ID
     * @return type
     */
    public function getInfoById($id) {
        $option = [
            'id'=> $id,
        ];
        $data = $this->field('*')->where($option)->find();        
        return empty($data) ? array() : $data;
    }
    
    public function addInfo($data)
    {
        return $this->add($data);
    }
}
